{include file="public/header" /}
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="ibox-title">
        <h5>订单详情</h5>
    </div>
    <div class="ibox-content layui-form">
        <div class="layui-row layui-col-space10 layui-form-item ">
            <input type="hidden" name="fen_id" value="{$user.order_id}">
            <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                <label class="layui-form-label">订单号：</label>
                <div class="layui-input-block">
                    <input type="text" name="fen_username" disabled class="layui-input " value="{$user.order_num}">
                </div>
            </div>
            <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                <label class="layui-form-label">订单金额：</label>
                <div class="layui-input-block">
                    <input type="text" name="fen_username" disabled class="layui-input " value="{$user.order_money}">
                </div>
            </div>
            <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                <label class="layui-form-label">订单状态：</label>
                <div class="layui-input-block">
                    <input type="text" name="fen_username" disabled class="layui-input "
                           value="{if $user.order_status==1}未完成{else/}已完成{/if}">
                </div>
            </div>
            <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                <label class="layui-form-label">支付类型：</label>
                <div class="layui-input-block">
                    <input type="text" name="fen_username" disabled class="layui-input "
                           value="{if $user.order_way==1}人脸支付{else/}扫码支付{/if}">
                </div>
            </div>
            <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                <label class="layui-form-label">设备号：</label>
                <div class="layui-input-block">
                    <input type="text" name="fen_username" disabled class="layui-input "
                           value="{$user.order_device_id}">
                </div>
            </div>
            <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                <label class="layui-form-label">下单时间：</label>
                <div class="layui-input-block">
                    <input type="text" name="fen_username" disabled class="layui-input " value="{$user.order_time}">
                </div>
            </div>
            <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                <label class="layui-form-label">付款时间：</label>
                <div class="layui-input-block">
                    <input type="text" name="fen_username" disabled class="layui-input " value="{$user.order_pay_time}">
                </div>
            </div>
            <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                <label class="layui-form-label">店铺得到的金额：</label>
                <div class="layui-input-block">
                    <input type="text" name="fen_username" disabled class="layui-input "
                           value="{$user.order_shopmoney}">
                </div>
            </div>
            <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                <label class="layui-form-label">分账金额：</label>
                <div class="layui-input-block">
                    <input type="text" name="fen_username" disabled class="layui-input "
                           value="{$user.order_fourmoney}">
                </div>
            </div>
            <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                <label class="layui-form-label">城市：</label>
                <div class="layui-input-block">
                    <input type="text" name="fen_username" disabled class="layui-input " value="{$user.district}">
                </div>
            </div>
            <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                <label class="layui-form-label">商铺名字：</label>
                <div class="layui-input-block">
                    <input type="text" name="fen_username" disabled class="layui-input " value="{$user.shop_name}">
                </div>
            </div>
            <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                <label class="layui-form-label">店铺店主微信号：</label>
                <div class="layui-input-block">
                    <input type="text" name="fen_username" disabled class="layui-input " value="{$user.shop_wx}">
                </div>
            </div>
            <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                <label class="layui-form-label">店铺店主名字：</label>
                <div class="layui-input-block">
                    <input type="text" name="fen_username" disabled class="layui-input " value="{$user.shop_username}">
                </div>
            </div>
            <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                <label class="layui-form-label">店铺店主商户号：</label>
                <div class="layui-input-block">
                    <input type="text" name="fen_username" disabled class="layui-input " value="{$user.shop_mchid}">
                </div>
            </div>
            <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                <label class="layui-form-label">店铺地址：</label>
                <div class="layui-input-block">
                    <input type="text" name="fen_username" disabled class="layui-input " value="{$user.shop_address}">
                </div>
            </div>
            <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                <label class="layui-form-label">所属分销商：</label>
                <div class="layui-input-block">
                    <input type="text" name="fen_username" disabled class="layui-input "
                           value="{if $user.shop_fid==0}管理员{else/}{$user.fen_realname}{/if}">
                </div>
            </div>
            {if $user.shop_fid!=0}
            <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                <label class="layui-form-label">分销商电话：</label>
                <div class="layui-input-block">
                    <input type="text" name="fen_username" disabled class="layui-input " value="{$user.fen_phone}">
                </div>
            </div>
            {/if}
            <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                <label class="layui-form-label">分销商等级：</label>
                <div class="layui-input-block">
                    <input type="text" name="fen_username" disabled class="layui-input "
                           value="{if $user.shop_fid==0}管理员{else/}{$user.fen_level}{/if}">
                </div>
            </div>
            <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                <label class="layui-form-label">分账详情：</label>
                <div class="layui-input-block">
                    {if $infos}
                    {volist name='infos' id='v'}
                    {if $v.info_level==0}
                    <input type="text" disabled class="layui-input" value="分销员：管理员     |     等级：管理员     |     分账金额：{$v.info_money}元"><br/>
                    {else/}
                    <input type="text" disabled class="layui-input" value="分销员：{$v.fen_realname}     |     等级：{$v.info_level}级     |     分账金额：{$v.info_money}元"><br/>
                    {/if}
                    {/volist}
                    {else/}
                    <input type="text" name="fen_username" disabled class="layui-input" value="此订单金额未达到分账标准">
                    {/if}
                </div>
            </div>


            <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit="" lay-filter="component-form-element">保存
                    </button>
                    <button class="layui-btn layui-btn-primary" onclick="history.go(-1)">返回</button>
                </div>
            </div>
        </div>
    </div>
</div>

{include file="public/footer" /}
<script type="text/javascript" src="__JS__/Crop.js"></script>
<script>

</script>
<script>

</script>
</body>
</html>